import request from '@/utils/request.ts';

//登录接口
export function login(data) {
	return request({
		url: '/therapist/login',
		method: 'post',
		params: data
	})
}
//退出注销接口
export function logout(data) {
	return request({
		url: '/logout',
		method: 'get',
		data
	})
}

//获取用户信息接口
export function getUserInfo(token) {
	
	return request({
		url: '/client/therapist/userInfo',
		method: 'get',
		params: {
			token
		}
	})
}
// 修改密码 
export function updatePassword(data) {
	return request({
		url: '/student/user/updatePassword',
		method: 'post',
		data
	})
}
// 模拟登录接口
export function tylogin(data) {
	return request({
		url: '/third/party/check',
		method: 'post',
		data
	})
}
 
// 修改用户组织

export function updateOrg(data) {
	return request({
		url: '/student/user/updateOrg',
		method: 'post',
		data
	})
}
//  查询组织树 
 export function organization(data) {
	return request({
		url: '/admin/user/organization/organizationTree',
		method: 'get',
		params:data
	})
 }

//  上传文件 /client/therapist/uploadFile
 export function uploadFile(data) {
	return request({
		url: '/client/therapist/uploadFile',
		method: 'POST',
		data
	})
 }

//  修改手机号 和 头像 


 export function updateInfo(data) {
	return request({
		url: '/client/therapist/updateInfo',
		method: 'POST',
		data
	})
 }

//  修改密码 upUser 
 export function upUser (data) {
	return request({
		url: '/client/therapist/updatePassword',
		method: 'POST',
		data
	})
 }

//  锁定记录查询 

 export function restList (data) {
	return request({
		url: '/client/therapist/restList',
		method: 'GET',
		params:data
	})
 }

//  消息列表 查询 

 export function notifyList (data) {
	return request({
		url: '/client/therapist/notifyList',
		method: 'GET',
		params:data
	})
 }


// 设置已读  

 export function notifyRead (data) {
	return request({
		url: '/client/therapist/notifyRead',
		method: 'GET',
		params:data
	})
 }



// 获取患者接口 

 export function patientInfo (data) {
	return request({
		url: '/client/therapistPlan/patientInfo',
		method: 'GET',
		params:data
	})
 }
